package com.panfeng.xcloud.boss.provider.member.web.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@ApiModel(value = "登录请求")
public class LoginReqVO implements Serializable {

    @NotNull(message = "客户端标识Id不能为null")
    @NotBlank(message = "客户端标识Id不能为空")
    @ApiModelProperty(value = "客户端标识Id", required = true)
    private String clientId;

    @NotNull(message = "客户端授权秘钥不能为null")
    @NotBlank(message = "客户端授权秘钥不能为空")
    @ApiModelProperty(value = "客户端授权秘钥", required = true)
    private String clientSecret;

    @NotNull(message = "登录方式不能为null")
    @NotBlank(message = "登录方式不能为空")
    @ApiModelProperty("登录方式 verifyCode:验证码 pwd:密码")
    private String loginMode;

    @NotNull(message = "账号不能为null")
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String accountNumber;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("验证码")
    private String verifyCode;

}
